<include file="Public/header" />
<title>管理员列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 商品调拨 <span class="c-gray en">&gt;</span> 详情 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20">

	<div class="cl pd-5 bg-1 bk-gray mt-20"> 
		<form class="formleft" name="" id="" action="__URL__/movegoodslist/" method="get">
			<input class="input-text" style="width:200px" type="text" value="<{$_GET['goods_no']}>" placeholder="商品编码" name="goods_no">
			<input class="input-text" style="width:200px" type="text" value="<{$_GET['goods_name']}>" placeholder="商品名称" name="goods_name">
			<input class="input-text" style="width:200px" type="text" value="<{$_GET['bar_code']}>" placeholder="条形码" name="bar_code">
			<input class="input-text" style="width:200px" type="text" value="<{$_GET['merchant_code']}>" placeholder="请求调拨货主编码" name="merchant_code">
			<input class="input-text" style="width:200px" type="text" value="<{$_GET['order_no']}>" placeholder="订单编号" name="order_no">
			<input type="checkbox" name="own_status" value="1" <if condition="I('own_status') eq 1">checked</if> >请求调拨
			
			<button type="submit" class="btn btn-success"><i class="icon-plus"></i> 查询</button>
			
			<button type="button" class="btn btn-success excel"><i class="icon-plus"></i> 导出Excel</button>

		</form>
		<span class="r">共有数据：<strong><{$count}></strong> 条</span> 
    </div>
	
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr>
				<th scope="col" colspan="15">列表</th>
			</tr>
			<tr class="text-c">
				<th>序号</th>
				<th width="">订单编号</th>
				<th width="">请求调拨货主编码</th>
				<th width="">商品编码</th>
				<th width="">商品名称</th>
				<th width="">条形码</th>
				<th width="">调拨数量</th>
				<!-- <th width="">备注</th> -->
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr class="text-c">
				<td><{$i}></td>
				<td><{$vo.order_no}></td>
				<td><{$vo.old_merchant_code}></td>
				<td><{$vo.goods_no}></td>
				<td><{$vo.goods_name}></td>
				<td><{$vo.bar_code}></td>
				<td><{$vo.amount}></td>
				<!-- <td><{$vo.remark}></td> -->
			</tr>
			</volist>			
		</tbody>
	</table>
	<div class="page mt" style="text-align:right"><{$page}></div>
</div>
<script>
	$(".excel").click(function(){
		url="<{:U('movegoodslist')}>";
		url=url+"?excel=1";
		
		goods_no=$("input[name=goods_no]").val();
		goods_name=$("input[name=goods_name]").val();
		bar_code=$("input[name=bar_code]").val();
		merchant_code=$("input[name=merchant_code]").val();
		order_no=$("input[name=order_no]").val();
		
		if($("input[name=own_status]").eq(0).prop("checked")){
			own_status=1;
			url=url+"&own_status=1";
		}
		if(goods_no){
			url=url+"&goods_no="+goods_no;
		}
		if(goods_name){
			url=url+"&goods_name="+goods_name;
		}
		if(bar_code){
			url=url+"&bar_code="+bar_code;
		}
		if(merchant_code){
			url=url+"&merchant_code="+merchant_code;
		}
		if(order_no){
			url=url+"&order_no="+order_no;
		}
		<!-- console.log(url); -->
		<!-- return false; -->
		window.location.href=url;
	})

</script>
 <include file="Public/footer" />
<include file="Public/footer_js" />
</body>
</html>